{include file="public/_meta" /}
<link href="__PUBLIC_ADMIN__css/plugins/iCheck/custom.css" rel="stylesheet">
</head>

<body class="gray-bg">
    <div class="wrapper wrapper-content animated fadeInRight">
    <div class="ibox-title">
                        <h5>配置管理</h5>
                    </div>
        <div class="row">
            <div class="col-sm-12">
                <div class="ibox float-e-margins">
                    <div class="ibox-content">
                        <form action="{:url('admin/wdgs/configure_post')}" method="post" class="form-horizontal" enctype="multipart/form-data">
                            <input type="hidden" name="id" value="{$res.id}">
                             <div class="col-md-12">
							    <div class="form-group">
							        <label class="col-sm-3 control-label">其他游戏是否启动：</label>
							        <div class="col-sm-4">
							        <label class="radio-inline">
							            <input id="r3" type="radio" value="1" name="game_off" {if condition="$res.game_off eq 1"} checked="checked"{else}{/if}>开启</input>  
							            </label>
							            <label class="radio-inline">
										<input id="r4" type="radio" value="0" name="game_off" {if condition="$res.game_off eq 0"} checked="checked"{else}{/if}>关闭</input> 
										</label>
										
							        </div>
							    </div>
							</div>
                          	<div class="hr-line-dashed"></div>
                            <div class="form-group">
                                <label class="col-sm-3 control-label">其他游戏UID：</label>
                                <div class="col-sm-2">
                                    <input name="game_uid" class="form-control" type="text" value="{$res.game_uid}">
                                </div>
                            </div>
                            <div class="hr-line-dashed"></div>
                            <div class="form-group">
                                <label class="col-sm-3 control-label">没次数分享第一行：</label>
                                <div class="col-sm-2">
                                    <input name="game_over_one" class="form-control" type="text" value="{$res.game_over_one}">
                                </div>
                            </div>
                            <div class="hr-line-dashed"></div>
                            <div class="form-group">
                                <label class="col-sm-3 control-label">没次数分享第二行：</label>
                                <div class="col-sm-2">
                                    <input name="game_over_two" class="form-control" type="text" value="{$res.game_over_two}">
                                </div>
                            </div>
                            <div class="hr-line-dashed"></div>
                            <div class="form-group">
                                <label class="col-sm-3 control-label">没次数分享第三行：</label>
                                <div class="col-sm-2">
                                    <input name="game_over_therr" class="form-control" type="text" value="{$res.game_over_therr}">
                                </div>
                            </div>
							<div class="hr-line-dashed"></div>
                            <div class="form-group">
                                <label class="col-sm-3 control-label">无次数分享按钮文本：</label>
                                <div class="col-sm-2">
                                    <input name="share_humber" class="form-control" type="text" value="{$res.share_humber}">
                                </div>
                            </div>
							<div class="hr-line-dashed"></div>
                            <div class="form-group">
                                <label class="col-sm-3 control-label">分享到群获得挑战次数：</label>
                                <div class="col-sm-2">
                                    <input name="share_number" class="form-control" type="text" value="{$res.share_number}">
                                </div>
                            </div>
                            <div class="hr-line-dashed"></div>
                            <div class="form-group">
                                <label class="col-sm-3 control-label">每天分享个人挑战次数'：</label>
                                <div class="col-sm-2">
                                    <input name="share_max" class="form-control" type="text" value="{$res.share_max}">
                                </div>
                            </div>
                          
                            <div class="hr-line-dashed"></div>
                            <div class="form-group">
                                <label class="col-sm-3 control-label">分享到群显示文本：</label>
                                <div class="col-sm-5">
                                    <input name="share_title" class="form-control" type="text" value="{$res.share_title}">
                                </div>
                            </div>
                            <div class="hr-line-dashed"></div>
                            <div class="form-group">
                                <label class="col-sm-3 control-label">每天登入增加游戏次数：</label>
                                <div class="col-sm-5">
                                    <input name="game_number_day" class="form-control" type="text" value="{$res.game_number_day}">
                                </div>
                            </div><div class="hr-line-dashed"></div>
                            <div class="form-group">
                                <label class="col-sm-3 control-label">新用户初始游戏获得挑战次数：</label>
                                <div class="col-sm-5">
                                    <input name="game_number_new" class="form-control" type="text" value="{$res.game_number_new}">
                                </div>
                            </div><div class="hr-line-dashed"></div>
                            <div class="form-group">
                                <label class="col-sm-3 control-label">默认难度：</label>
                                <div class="col-sm-5">
                                    <input name="game_over" class="form-control" type="text" value="{$res.game_over}">
                                </div>
                            </div><div class="hr-line-dashed"></div>
                            <div class="form-group">
                                <label class="col-sm-3 control-label">分享好友同意增加无敌卡次数：</label>
                                <div class="col-sm-5">
                                    <input name="game_wuhui_number" class="form-control" type="text" value="{$res.game_wuhui_number}">
                                </div>
                            </div><div class="hr-line-dashed"></div>
                            <div class="form-group">
                                <label class="col-sm-3 control-label">首次登入获得无敌卡：</label>
                                <div class="col-sm-5">
                                    <input name="game_wudi" class="form-control" type="text" value="{$res.game_wudi}">
                                </div>
                            </div><div class="hr-line-dashed"></div>
                            <div class="form-group">
                                <label class="col-sm-3 control-label">无敌卡时间：</label>
                                <div class="col-sm-5">
                                    <input name="game_time" class="form-control" type="text" value="{$res.game_time}">
                                </div>
                            </div>
                            <div class="form-group">
								<label class="col-sm-3 control-label">小游戏二维码：</label>
								<div class="col-sm-5">
									<div class="up">
										<input placeholder="" name="file" class="one" type="file">
										<div id="preview1">
											<img src="/{$res.code}" alt="">
										</div>
									</div>
								</div>
							</div>
                            <div class="hr-line-dashed"></div>
                            <div class="form-group">
                                <div class="col-sm-8 col-sm-offset-3">
                                    <button class="btn btn-primary" type="submit">提交</button>
                                </div>
                            </div>
                        </form>
                    </div>
                </div>
            </div>
        </div>
    </div>

    {include file="public/_footer" /}
	
    <!-- 自定义js -->
    <script src="__PUBLIC_ADMIN__js/content.js?v=1.0.0"></script>
    <script type="text/javascript" charset="utf-8" src="__PUBLIC_ADMIN__utf8-php/ueditor.config.js"></script>
    <script type="text/javascript" charset="utf-8" src="__PUBLIC_ADMIN__utf8-php/ueditor.all.min.js"></script>
    <!-- iCheck -->
    <script src="__PUBLIC_ADMIN__js/plugins/iCheck/icheck.min.js"></script>
    
    <script>
        $(document).ready(function() {
        	$('.i-checks').iCheck({
                checkboxClass: 'icheckbox_square-green',
                radioClass: 'iradio_square-green',
            });
			
            $('.refresh').click(function(){
            	//window.location.reload();	// 刷新页面
            })
		});
	</script>

</body>
</html>
